<?php
include "./common.php";
!$_GET['contentid'] && showmessage("参数错误！");

$contentid = $_GET['contentid'];


$query = $db->query("SELECT * FROM ".tname("news")." WHERE id='$contentid'");
$rs = $db->fetch_array($query);


extract($rs);


/**
 * 公告列表
 **/
$query = $db->query("SELECT title,id,posttime FROM ".tname('news')." ORDER BY posttime DESC");
$newsList = $db->fetch_all($query);


include template("text");
?>